package com.cskaoyan.beanwx.vo;

import com.cskaoyan.bean.pojo.OrderGoods;
import com.cskaoyan.beanwx.pojo.HandleOption;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author: lds
 * @clsss: OrderListVo
 */
@Data
public class OrderListVo {

    /**
     * data : [{"orderStatusText":"已收货","isGroupin":false,"orderSn":"20200427883997","actualPrice":398,"goodsList":[{"number":1,"picUrl":"http://yanxuan.nosdn.127.net/c39d54c06a71b4b61b6092a0d31f2335.png","id":5,"goodsName":"100年传世珐琅锅 全家系列"}],"id":5,"handleOption":{"cancel":false,"delete":true,"pay":false,"comment":true,"confirm":false,"refund":false,"rebuy":true}},{"orderStatusText":"已发货","isGroupin":false,"orderSn":"20200427823188","actualPrice":199,"goodsList":[{"number":1,"picUrl":"http://yanxuan.nosdn.127.net/cf40c167e7054fe184d49f19121f63c7.png","id":4,"goodsName":"纯棉美式绞花针织盖毯"}],"id":4,"handleOption":{"cancel":false,"delete":false,"pay":false,"comment":false,"confirm":true,"refund":false,"rebuy":false}},{"orderStatusText":"订单取消，退款中","isGroupin":false,"orderSn":"20200427912030","actualPrice":37,"goodsList":[{"number":1,"picUrl":"http://yanxuan.nosdn.127.net/203cb83d93606865e3ddde57b69b9e9a.png","id":3,"goodsName":"魔兽世界 部落 护腕 一只"}],"id":3,"handleOption":{"cancel":false,"delete":false,"pay":false,"comment":false,"confirm":false,"refund":false,"rebuy":false}},{"orderStatusText":"订单取消，退款中","isGroupin":false,"orderSn":"20200427674885","actualPrice":2599,"goodsList":[{"number":1,"picUrl":"http://yanxuan.nosdn.127.net/45548f26cfd0c7c41e0afc3709d48286.png","id":2,"goodsName":"宫廷奢华真丝四件套"}],"id":2,"handleOption":{"cancel":false,"delete":false,"pay":false,"comment":false,"confirm":false,"refund":false,"rebuy":false}},{"orderStatusText":"已发货","isGroupin":false,"orderSn":"20200427187816","actualPrice":44,"goodsList":[{"number":1,"picUrl":"http://yanxuan.nosdn.127.net/767b370d07f3973500db54900bcbd2a7.png","id":1,"goodsName":"蔓越莓曲奇 200克"}],"id":1,"handleOption":{"cancel":false,"delete":false,"pay":false,"comment":false,"confirm":true,"refund":false,"rebuy":false}}]
     * count : 5
     * totalPages : 1
     */

    private int count;
    private int totalPages;
    private List<DataBean> data;
    @Data
    public static class DataBean {
        /**
         * orderStatusText : 已收货
         * isGroupin : false
         * orderSn : 20200427883997
         * actualPrice : 398
         * goodsList : [{"number":1,"picUrl":"http://yanxuan.nosdn.127.net/c39d54c06a71b4b61b6092a0d31f2335.png","id":5,"goodsName":"100年传世珐琅锅 全家系列"}]
         * id : 5
         * handleOption : {"cancel":false,"delete":true,"pay":false,"comment":true,"confirm":false,"refund":false,"rebuy":true}
         */
        private String orderStatusText;
        private boolean isGroupin;
        private String orderSn;
        private BigDecimal actualPrice;
        private int id;
        private HandleOption handleOption;
        private List<OrderGoods> goodsList;

        public boolean setIsGroupin() {
            return isGroupin;
        }

        public void setIsGroupin(boolean groupin) {
            isGroupin = groupin;
        }
    }
}

